/**
 * @Author：ming
 * @Date：2023/10/2 7:01 AM
 * @Filename：TestMain
 */

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;

/**
 * @author ming
 */
public class TestMain {
    public static void main(String[] args) {
      String s ="qwewewe";
        char[] c = s.toCharArray();
        String s1 = new String(c);
        System.out.println(s1);
        System.out.println(s1.equals(s));
        HashMap<String, Integer> map = new HashMap<>();
        map.put(s,1);
        System.out.println(map.containsKey(s1));

        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        Iterator<Integer> iterator = list.iterator();
        while (iterator.hasNext()){
            Integer temp = iterator.next();
            if(temp>0){
                iterator.remove();
                System.out.println(list);
            }
        }

    }
}
